#pragma once
#include "Bin.h"
#include "Window.h"

class UpgraApp{
public:
	static void begin	(PTSTR);
	static void end		(void);
	static void setup	(PTSTR,uint,PTSTR);

private:
	static UpgraApp		*app;
	static uint WINAPI	threadProc	(void*);

	Bin*	bin;
	PTSTR	cmdLine;
	HANDLE	thread;

	void	exec	(void);
	void	wait	(void);
};